#ifndef _SOFTWARE_IIC_H_
#define _SOFTWARE_IIC_H_

#include <stdint.h>
#include <stdbool.h>

#if 1
void IIC_Start(void);
void IIC_Stop(void);
void IIC_SendData(uint8_t data);
uint8_t IIC_ReceiveData(void);
bool IIC_WaitACK(void);
void IIC_SendNACK(void);
void IIC1_Init(void);
void IIC_EEPROM_Byte_Write(uint8_t WordAddress, uint8_t Data);
uint8_t IIC_EEPROM_Random_Read(uint8_t WordAddress);
#else
void IIC_Init(void);
void IIC_AT24C02_Write(uint8_t addr, uint8_t data);
uint8_t IIC_AT24C02_Read(uint8_t addr);
#endif

#endif	/* _SOFTWARE_IIC_H_ */
